import React,{ Component } from 'react'
import ADoor from './ADoor'
import AWindow from './AWindow'
import Chimney from './Chimney'

export default class BestHouse extends Component {
    state = {
      }

  render (){
      const { name, door, isChimney } = this.props
      return (<div>
                {name}
                {/* 这是一扇门 */}
                <ADoor {...door}/>
                {/* 这是一扇窗户 */}
                <AWindow/>
                {isChimney === 'true' && <Chimney/>}
             </div>)
  }
}

